<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>党建网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../assets/css/amazeui.css" />
    <link rel="stylesheet" href="../../assets/css/admin.css">
    <link rel="stylesheet" href="../../css/index.css">
    <link rel="stylesheet" href="../../css/innoGood.css">


</head>

<body>
    <!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

    <div class="content">

        <!--nav-div-->
        <div id="nav-bar" class="nav-bar"></div>
        <!--nav-div-->

        <div id="img-div"></div>

        <!--left-->
        <div id="left-div" class="left-div"></div>
        <!--left-->

        <!--content-->
        <div class="content-div">
            <div class="con-header">创先争优</div>
            <div class="con-act">
                <div data-am-widget="list_news" class="am-list-news am-list-news-default">
                    <!--列表标题-->
                    <div class="am-list-news-hd am-cf">
                        <!--带更多链接-->

                        <h2>活动动态</h2>
                        <a href="actTre.html" class="">
                            <span class="am-list-news-more am-fr">更多 &raquo;</span>
                        </a>
                    </div>

                    <div class="am-list-news-bd">
                        <ul class="am-list" id="act_ul">
                        </ul>
                    </div>

                </div>

            </div>
            <div class="con-lea">
                <div data-am-widget="list_news" class="am-list-news am-list-news-default">
                    <!--列表标题-->
                    <div class="am-list-news-hd am-cf">
                        <!--带更多链接-->
                        <h2>理论学习</h2>
                        <a href="theLearning.html" class="">
                            <span class="am-list-news-more am-fr">更多 &raquo;</span>
                        </a>
                    </div>

                    <div class="am-list-news-bd">
                        <ul class="am-list" id="lea_ul">
                        </ul>
                    </div>

                </div>
            </div>
            <div class="con-cha">
                <div data-am-widget="list_news" class="am-list-news am-list-news-default">
                    <!--列表标题-->
                    <div class="am-list-news-hd am-cf">
                        <!--带更多链接-->
                        <h2>特色项目</h2>
                        <a href="chaPro.html" class="">
                            <span class="am-list-news-more am-fr">更多 &raquo;</span>
                        </a>
                    </div>

                    <div class="am-list-news-bd">
                        <ul class="am-list" id="cha_ul">
                        </ul>
                    </div>

                </div>
            </div>
        </div>

        <!--content-->


        <!--right-->
        <div id="right-div" class="right-div"></div>
        <!--right-->
    </div>
    <!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="../../assets/js/jquery.min.js"></script>
    <!--<![endif]-->
    <script src="../../assets/js/amazeui.min.js"></script>
    <script src="../../js/prevHeader.js"></script>
    <script src="../../js/jquery.zlight.menu.1.0.min.js"></script>
<script src="../../js/index.js"></script>
<script src="../../js/global.js"></script>
    <script>
        $(document).ready(function(){
            
            $.ajax({
    			type : "GET",
    			url : "/partyBuilding/article/scol/5/curPage/1/pageSize/5",
    			contentType : "application/json",
    			dataType : "json",
    			success : function(data) {
    				//alert(JSON.stringify(data));
    				
    				if(data.code == "200") {
    					actUl(data);
    		            leaUl();
    		            chaUl();
    		            $("#location").text("当前位置：首页 > 创先争优 ");
    		            
    				}
    			},
    			error : function() {
    				
    			}
    		});  
           
        })
        
        // 活动动态
        function actUl(data){
        	
        	$.each(data.articles, function(num, articles) {
                $("#act_ul").append('<li class="am-g am-list-item-dated">'+
         '<a onclick="actCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a>'+
         '<span class="am-list-date">'+getTime(articles.artCreateTime)+'</span>'+'</li>');
                if(num==4) return false;
           })
        }
        
        // 理论学习
        function leaUl(){
        	$.ajax({
    			type : "GET",
    			url : "/partyBuilding/article/scol/4/curPage/1/pageSize/5",
    			contentType : "application/json",
    			dataType : "json",
    			success : function(data) {
    				//alert(JSON.stringify(data));
    				
    				if(data.code == "200") {
    					$.each(data.articles, function(num, articles) {
    		                $("#lea_ul").append('<li class="am-g am-list-item-dated">'+
    		         '<a onclick="leaCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a>'+
    		         '<span class="am-list-date">'+getTime(articles.artCreateTime)+'</span>'+'</li>');
    		                if(num==4) return false;
    		           })
    		            
    				}
    			},
    			error : function() {
    				
    			}
    		});  
        }
        
             // 特色项目
        function chaUl(){
        	$.ajax({
    			type : "GET",
    			url : "/partyBuilding/article/scol/6/curPage/1/pageSize/5",
    			contentType : "application/json",
    			dataType : "json",
    			success : function(data) {
    				//alert(JSON.stringify(data));
    				
    				if(data.code == "200") {
    					$.each(data.articles, function(num, articles) {
    		                $("#cha_ul").append('<li class="am-g am-list-item-dated">'+
    		         '<a onclick="chaCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a>'+
    		         '<span class="am-list-date">'+getTime(articles.artCreateTime)+'</span>'+'</li>');
    		                if(num==4) return false;
    		           })
    		            
    				}
    			},
    			error : function() {
    				
    			}
    		});  
            
        }
    </script>

</body>

</html>